var AV = require('avoscloud-sdk').AV;

ProductSecModel = AV.Object.extend('ProductSecModel');
model = new ProductSecModel();
var saveModel = function(devNo,quantity,date){
  model.set("DevNo",devNo);
  model.set("Quantity",quantity);
  model.set("Date",date);
  model.save(null,{
  success:function(model){
    console.log("New object created with object id:"+model.id);
  },
  error:function(model,error){
    console.log("create object failed with error code:"+ error.description);
  }
  });
};
var deleteModel = function(){
};
module.exports = function(){
  this.saveModel = saveModel;
  this.deleteModel = deleteModel;

};